<HTML>
<HEAD>
<style type="text/css">
			body { background:#eee }

      div#Splash
      {

<?php
         printf("background: transparent url(/templates/%s/images/Splash.jpg) ;",  
         $GLOBALS[cur_template]) ;
?>
         background-repeat: no-repeat;
         width: 562px;
         height: 330px;
      }


      div#myBackground
      {

<?php
   printf("background: transparent url(/templates/%s/images/background.jpg) ;",  
   $GLOBALS[cur_template]) ;
?>
         background-repeat: repeat-x;         
         /*zindex:-1 not neccessary - is set in code*/
         top:72px;   
      }
   

            /* Define a new style for each menu bar */



div.yuimenu
{
   width:250px ;  /*Breite eines Menukastens...*/
   
}

.yuimenubaritem-selected,
.yuimenuitem-selected {

    background-color: #002487;

}

.yuimenu li.selected, .yuimenubar li.selected{
               background-color:#002487; /*000E69*/;
            }


.yui-panel .hd {
    /*background-color:#000069;*/
    <?php
    printf("background: transparent url(/templates/%s/images/menubar_background.gif) left center;", 
      $GLOBALS[cur_template]) ;
    ?>
    color:#FFF;
    font-size:100%;
    line-height:100%;
    border:1px solid #FFF;
    border-bottom:1px solid #000;
    font-weight:bold;
    padding:4px;
    white-space:nowrap;
}



            div#mymenubar.yuimenubar {
            
                /*background:url(img/menubar_background.gif) left center;*/
<?php
   printf("background: transparent url(/templates/%s/images/menubar_background.gif) left center;",  
   $GLOBALS[cur_template]) ;
?>
                border:1px ridge #ccc;
                border-bottom-width:1px;
                z-index:1000;                
                FONT-SIZE: 11pt;

            }

/*The YUI Menu Overrides*/

            


            div#mymenubar.yuimenubar li.yuimenubaritem {

                padding:4px 10px;
                border:none;
                color: #000;

            }

            div#mymenubar.yuimenubar li.yuimenubaritem.first-of-type a {
            
                text-indent:-6em;
                
					 /*YAHOO Logo - disabled*/
                /*background:url(http://us.i1.yimg.com/us.yimg.com/i/us/nt/b/purpley.1.0.gif) center center no-repeat;*/
					 

                width:2em;
                float:left;
                overflow:hidden;
                _margin-right:1em; /* IE 6 only */
                /*display: none;*/
            
            }

            div#mymenubar.yuimenubar div#yahoo.yuimenu li.yuimenuitem a {

                float:none;
            
            }

            div#mymenubar.yuimenubar .yuimenu {
            
                background:#edebeb;
            
            }

            div#mymenubar.yuimenubar .yuimenu li.yuimenuitem a {
            
                text-indent:0;
                background:none;
                width:auto;
                overflow:visible;
                _margin-right:auto; /* IE 6 only */
            
            }            

            div#mymenubar.yuimenubar li em.submenuindicator {

                height:1px;
                width:1px;
                margin:0;
            
            }
            
            div#mymenubar div.yuimenu li em.submenuindicator {

                height:8px;
                width:8px;
                margin:0 -16px 0 10px;
            
            }

            

            div#Logo
            {
              /*border:1px;
              border-style:solid;*/
              width:590px;
              height:421px ;
              /*osition:absolute;*/
              top:30px;
              background:url(http://2112portals.com/images/cloudtag.jpg) center center no-repeat;
            }
        


		</style>
	
	
	<link rel="stylesheet" type="text/css" href="/yui/build/reset-fonts-grids/reset-fonts-grids.css" />
	
	
	<link type="text/css" rel="stylesheet" href="/yui/build/fonts/fonts.css">
	<link type="text/css" rel="stylesheet" href="/yui/build/reset/reset.css">
	<!-- CSS for Menu -->
	<link rel="stylesheet" type="text/css" href="/2112PowerWindows/assets/layout-core.css" />
	<link type="text/css" rel="stylesheet" href="/2112PowerWindows/assets/window12.css">
	<link rel="stylesheet" type="text/css" href="/yui/build/menu/assets/menu.css">
  
  
	<script type="text/javascript" src="/yui/build/yahoo/yahoo-min.js"></script>
	<script type="text/javascript" src="/yui/build/event/event-min.js" ></script>
	<script type="text/javascript" src="/yui/build/dom/dom-min.js" ></script>
	<script type="text/javascript"  src="/yui/build/yuiloader/yuiloader-beta-min.js"></script>
   <script type="text/javascript" src="/yui/build/container/container-min.js"></script>

	<!-- Menu source file -->
   <script type="text/javascript" src="/yui/build/menu/menu-min.js"></script>

   <script type="text/javascript" src="/yui/build/logger/logger-min.js"></script>
   
  


<!-- The Portals Namespace --> 
<script type="text/javascript"  src="/2112PowerWindows/runtime12/NS2112.js"></script>
<script type="text/javascript"  src="/2112PowerWindows/runtime12/snapLoader.js"></script>
<script type="text/javascript"  src="/2112PowerWindows/runtime12/portalMan.js"></script>


<?php if ( $my->id ) { initEditor(); } ?>
<?php 
   echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/favicon.ico\" />" ; 
?>



<script type="text/javascript">
//<![CDATA[
menuEntry = function(strText, strHelpText, strAction)
{
   this.text = strText ;
   this.helptext = strHelpText;
   this.url = strAction ;
}

var global_iTimerID = 0;

preLoadContent = function(o, theSnap)
{  //when the content-snapIn is loaded we could load our content page
   if( theSnap[0].IntrinsicType == 'content' ) 
   {      
      //NS2112.requestContent('http://lks.allis1.com/index.php?option=com_content&task=view&id=16', 'front') ;
      //NS2112.requestContent( "http://google.co.uk", "Google");
   }
}

  

<?php 
   require_once($mosConfig_absolute_path."/templates/$GLOBALS[cur_template]/menu.php"); 

   $myMenuArr = array() ;
   $return = mosGetParam( $_SERVER, 'REQUEST_URI', null );
   // converts & to &amp; for xtml compliance
   $return = str_replace( '&', '&amp;', $return );
   
   if( strcmp($return, '/') == 0 || strcmp($return, '/index.php') == 0
          || stristr($return, 'com_frontpage') == TRUE)
   {
    $isFront = true ;    //frontpage (Joomla)
   }   
   makeMainMenu(true, &$myMenuArr);  //this would create a itemData Array.
?>


   /*Use onDOMReady to preset the portal*/  

      onDOMReady = function(p_sType) 
      { 
         var el = null ;
         //portalMan was created on including portalMan.js
         NS2112.portalMan.loadDepends() ;
         var mc = NS2112.portalMan.getMasterControl() ;

         aItemData[1].submenu.itemdata.push(new menuEntry("JerusalemTime", "JerusalemTime", 
             "javascript:NS2112.requestSnap('/2112PowerWindows/widgetBase/samples/flash/jerusalemTime.js', 'Jerusalem Time', 'JerusalemTime', 'right')")) ;
         aItemData[1].submenu.itemdata.push(new menuEntry("LondonTime", "LondonTime", 
             "javascript:NS2112.requestSnap('/2112PowerWindows/widgetBase/samples/flash/londonTime.js', 'London Time', 'LondonTime', 'right')")) ;
   

         NS2112.sandboxMode = true ;
         mc.onIntrinsicReady.subscribe(preLoadContent) ;  
         mc.loadSnapIns() ;
  
            
        el = document.getElementById('MenuCloudTag')

        if(el) el.style.display = "none" ;
        {
             document.getElementById('Splash').style.display = 'block' ;
        }
        var splash = new YAHOO.widget.Overlay("Splash", { 
                   fixedcenter:true,  
                   visible:true}
                   );

               splash.render();
               splash.show() ;


            if( false == YAHOO.util.Event.isIE ) //ie only - this would cause a permanent hide on ff
            {
               document.getElementById('Splash').style.zIndex = "0" ;     
            }
            else
               document.getElementById('Splash').style.zIndex = "-1" ;  //important, to not hide panels!


               
            if(NS2112.aPortalSettings['FRONTPANEL']!=null)
            {
               //loading a panel on startup - currently disabled
            }


         

               
    
      }  //domready

debugWB = function() 
{
   
      var mc = portalMan.getMasterControl() ;  //portalMan is created on including portalMan.js
      
      mc.onIntrinsicReady.subscribe(preLoadContent) ;       
      mc.loadSnapIns() ;  //main portal trigger
}

YAHOO.util.Event.onDOMReady(onDOMReady);
//]]>  //CDATA    
</script>


<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>

<div id="Splash" style="display:none;">
</div>


<div id="myBackground" >
</div>



<div id="joomlaModuleBoxLeft"  style="display:none;overflow:show;" align=left>
  <?php 
    mosLoadModules ( 'user1' );   //LKS LOGIN  
  ?> 
</div>

<?php
if( isset($my->username) && strlen($my->username) > 0 ) 
{
   print("<div id=\"joomlaModuleBoxUser\" style=\"display:none;overflow:auto;\"></div>") ;
}
?>


  
<div id="MenuCloudTag" style="overflow:auto;left:-400px;height:20px;width:20px;" >
<?php

//print_r($myMenuArr) ;

//printf("<div class=\"hd\">Menu Tag Cloud</div>". "\n") ;   
//print("<div class=\"bd\" >". "\n") ;

$mycontent = <<<EOT

<div class="hd" id="nls2112_TagCloud">Menu Tag Cloud</div>

<div class="bd" style="overflow:auto;">

<div id="nls2112_TagCloudIntro"></div>


EOT;
print($mycontent) ;

   foreach($myMenuArr as $strMenuItem)
   {
         //printf("%s<br>\n", ) ;
         // seed with microseconds since last "whole" second
         srand ((double)microtime()*1000000);
         $randval = rand(0, 2); //roll the dice to get sign (positiv signs preferred therefore 0-2)
         $randval==0?$sign = "-":$sign = "+" ;
         $randval = rand(0, 3); //roll the dice to get textsize
         $data = explode("|", $strMenuItem) ;
          printf("<font size=\"%s%s\"><a href=\"%s\" target=\"_blank\">%s</a></font>\n", $sign, $randval, $data[1], $data[0]) ;
   }
print("</div><!-- panel body (bd) -->\n") ;
print("<div id=\"nls2112_TagCloudFooter\" class=\"ft\"></div>". "\n") ;

?>   
</div> <!-- MenuCloudTag -->
<div id="shim" style="position:absolute;display:none;left:0px;top:0px;width:2000px;height:2000px;z-index:-1000;background-color: silver;opacity:.25;filter: alpha(opacity=25); -moz-opacity: 0.5;border:1px solid black;"></div> 
</BODY>
</HTML>
